package com.enation.app.javashop.api.client;


import com.enation.app.javashop.model.statistics.dto.RefundData;
import com.enation.app.javashop.service.statistics.RefundDataManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 退货收集manager
 *
 * @author chopper
 * @version v1.0
 * @Description:
 * @since v7.0
 * 2018/5/8 下午4:10
 */

@RestController
@RequestMapping("/client/statistics")
@Validated
@ApiIgnore
public class RefundDataClientController {
    @Autowired
    private RefundDataManager refundDataManager;

    /**
     * 退款消息写入
     *
     * @param refundData
     */
    @RequestMapping(value = "/refund/put", method = RequestMethod.POST)
    public void put(@RequestBody RefundData refundData){
        refundDataManager.put(refundData);
    }

}
